package cn.hr.service;

import cn.hr.base.BaseService;
import cn.hr.pojo.Organization;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

/**
 * 组织结构服务接口
 *
 * @author MO
 *
 */
public interface OrganizationService extends BaseService<Organization> {
    /**
     * 查询所有
     *
     * @return
     */
    List<Organization> findAll() throws Exception;

    /**
     * 根据父级id,是否启用查询其下所有子部门
     */
    List<Map> findSubdivisionByParentId(Map map) throws Exception;

    String deleteById(Integer id) throws  Exception;
}
